package dao.impl;

import dao.UserDao;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

//<bean id="userDao" class="dao.impl.UserDaoImpl"></bean>
//@Component("userDao")
@Repository("userDao")
public class UserDaoImpl implements UserDao {
    @Value("${url}")
    private String url;

    @Override
    public void save() {
        System.out.println("数据库地址:" + url);
        System.out.println("running save...");
    }
}
